<?php
$this->breadcrumbs = array(
    'Paypal settings'
);
?>
<div class="box">
    <header>
        <div class="icons"><i class="icon-wrench"></i></div>
        <h5>Paypal settings</h5>
    </header>
    <div class="body">
    <form method="post">
        <div class="control-group">
            <div class="controls">
                <input type="radio" value="1" name="environment" <?php echo isset($settings['environment']) && $settings['environment'] ? 'checked="checked"': ''; ?> /> Live
                <input type="radio" value="0" name="environment" <?php echo isset($settings['environment']) && !$settings['environment'] ? 'checked="checked"': ''; ?> /> Sandbox
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">Username</label>
            <div class="controls">
                <input type="text" name="username" value="<?php echo isset($settings['username']) ? $settings['username'] : '' ?>" class="input-xxlarge" />
            </div>
        </div>

        <div class="control-group">
            <label class="control-label">Password</label>
            <div class="controls">
                <input type="text" name="password" value="<?php echo isset($settings['password']) ? $settings['password'] : '' ?>" class="input-xxlarge" />
            </div>
        </div>

        <div class="control-group">
            <label class="control-label">Signature</label>
            <div class="controls">
                <input type="text" name="signature" value="<?php echo isset($settings['signature']) ? $settings['signature'] : '' ?>" class="input-xxlarge" />
            </div>
        </div>


        <div class="form-actions">
            <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'primary', 'label' => 'Submit')); ?>
        </div>
    </form>
</div>
